/**
 * Created by Jerry on 2016/12/23.
 */
function fordate(value) {
    var date = new Date(value);
    var year = date.getFullYear().toString();
    var month = (date.getMonth() + 1);
    var day = date.getDate().toString();
    var hour = date.getHours().toString();
    var minutes = date.getMinutes().toString();
    var seconds = date.getSeconds().toString();
    if (month < 10) {
        month = "0" + month;
    }
    if (day < 10) {
        day = "0" + day;
    }
    if (hour < 10) {
        hour = "0" + hour;
    }
    if (minutes < 10) {
        minutes = "0" + minutes;
    }
    if (seconds < 10) {
        seconds = "0" + seconds;
    }
    return year + "年" + month + "月" + day + "日 " + hour + ":" + minutes + ":" + seconds;
}

//将1,234,567.00转换为1234567.00
function moneyToNumFiled(val) {
    var num=val.trim();
    var str=num.toString();
    if(str.length==0){
        str = "0";
    }else{
        str = str.replace(/,/g, "")
    }
    return parseFloat(str);
}